﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using SlimDX.Windows;
using System.Diagnostics;

namespace TestPlatform
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// 

        static MainFrame mMainFrame;
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Idle += new EventHandler(UpdateRender);

            Application.Run(mMainFrame = new MainFrame());

        }

        static void UpdateRender(object sender, EventArgs e)
        {
            while (MessagePump.IsApplicationIdle)
            {
                mMainFrame.DoUpdate();
            }

        }
    }
}
